package com.deepocean.dao;

import com.deepocean.entity.DenseMediumCycloneCondition;
import com.deepocean.entity.DenseMediumCycloneEntity;
import com.deepocean.entity.DenseMediumCycloneInAndOut1Hour;
import com.deepocean.entity.process.DenseMediumCycloneProcessEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DenseMediumCycloneDao {
    /**
     * 离心机增加记录
     * @param denseMediumCycloneEntity
     * @return
     */
    boolean add(DenseMediumCycloneEntity denseMediumCycloneEntity);

    /**
     * 当前时间开始，进一小时数据总和
     * @param deviceId
     * @return
     */
    DenseMediumCycloneInAndOut1Hour getInAndOutInHour(String deviceId);

    /**
     * 条件查询
     * @param denseMediumCycloneCondition
     * @return
     */
    List<DenseMediumCycloneEntity> getDenseMediumCycloneByCondition(DenseMediumCycloneCondition denseMediumCycloneCondition);

    boolean addProcess(DenseMediumCycloneProcessEntity denseMediumCycloneProcessEntity);
}
